// Package repository
// @Author zhongxc
// @Date 2024/7/26 15:21:00
// @Desc
package repository

import (
	"context"
	"vben-admin/pkg/model"
)

type InterfaceRepo interface {
	CreateInterface(ctx context.Context, interfaceModel *model.InterfaceModel) error
	UpdateInterface(ctx context.Context, id int64, data map[string]interface{}) error
	DeleteInterface(ctx context.Context, ids []int64) error
	GetInterfaceList(ctx context.Context, name, url string, page, limit int64) (map[string]interface{}, error)
	GetInterfaceInfo(ctx context.Context, id int64) (*model.InterfaceModel, error)
	FindByNameOrUrl(ctx context.Context, name, url string) (*model.InterfaceModel, error)
	GetAll(ctx context.Context) ([]*model.InterfaceModel, error)
}
